﻿function getRadioValue(theRadioGroup) {
    for (var i = 0; i < document.getElementsByName(theRadioGroup).length; i++) {
        if (document.getElementsByName(theRadioGroup)[i].checked) {
            return document.getElementsByName(theRadioGroup)[i].value;
        }
    }
}
function SelectChart() {
    alert(getRadioValue('rblist'));
    var chartname = getRadioValue('rblist');
    if (chartname == 'Area Range') {
        $.getScript('Scripts/MyCharts/Area Range.js', function () { });
    }
    else if (chartname == 'Time Series, zoomable') {
        $.getScript('Scripts/MyCharts/Time Series Zoomable.js', function () { });
    }
    else if (chartname == 'Master-Detail chart') {
        $.getScript('Scripts/MyCharts/Master-Detail.js', function () { });
    }
}
